package com.spring.mao.user.services.impl;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.spring.mao.user.dao.UserDao;
import com.spring.mao.user.model.UserModel;
import com.spring.mao.user.services.UserServices;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServicesImpl implements UserServices {

    @Autowired
    public UserDao userDao;

    @Override
    public  List<UserModel>  getUsers(UserModel userModel) {

        PageHelper.startPage(1,10);
        List<UserModel> userModels = userDao.getUsers(userModel);
        return  userModels;
    }
}
